//
//  LLAnimationAlertView.h
//  Receipt
//
//  Created by 刘玲玉 on 2019/5/13.
//  Copyright © 2019 LG. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    AnimationFromTop,
    AnimationFromBottom,
    AnimationFromRight,
    AnimationFromLeft,
    AnimationBottomToCenter,
} AnimationType;

NS_ASSUME_NONNULL_BEGIN

@interface LLAnimationAlertView : UIView

@property (nonatomic, readonly, strong) UIView *alertView;

///点击空白消失的回调
@property (nonatomic, copy) dispatch_block_t dismissBlock;

+ (instancetype)animationAlertViewWithView:(UIView *)alertView animationType:(AnimationType)animationType;

///点击空白处能不能消失
+ (instancetype)animationAlertViewWithView:(UIView *)alertView animationType:(AnimationType)animationType tapBgDismiss:(BOOL)tapDismiss;

///点击空白处能不能消失
+ (instancetype)animationAlertViewWithView:(UIView *)alertView animationType:(AnimationType)animationType tapBgDismiss:(BOOL)tapDismiss inView:(nullable UIView *)fuView;

///alertView消失
+ (void)dismissView:(UIView *)alertView;


@end

NS_ASSUME_NONNULL_END
